package com.demo.exce;

/**
 * @Author WaveHi
 * @Date 24/7/2021 上午 11:46
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class TeOperatorDemo {

    public static void main(String[] args) {

        //定义变量
        int totalPage = 88;
        int page;
        int pageSize = 10;

        //计算
        page = (totalPage % pageSize) == 0 ? (totalPage / pageSize) : (totalPage / pageSize + 1);
        System.out.println("page = " + page);

    }

}
